package com.bjc.principle.builder;

/**
 * @program: DesignPattern
 * @description:  具体的建造者：打工人
 * @author: bjc
 * @create: 2020-12-16 21:28
 */
public class Worker extends Builder{

    private Product product;

    public Worker() {
        this.product = new Product();
    }

    void buildA() {
        product.setBuildA("地基");
        System.out.println("地基");
    }

    void buildB() {
        product.setBuildB("钢筋工程");
        System.out.println("钢筋工程");
    }

    void buildC() {
        product.setBuildC("铺电线");
        System.out.println("铺电线");
    }

    void buildD() {
        product.setBuildD("粉刷");
        System.out.println("粉刷");
    }

    Product getProduct() {
        return product;
    }
}
